!!!
%html
  %head
    %meta{:charset => 'utf-8'}/
    = favicon_link_tag 'favicon.ico'

    = stylesheet_link_tag 'application', :media => 'all'
    = stylesheet_link_tag 'print', :media => 'print'
    = engine_stylesheet_link_tag :media => 'screen, projection, print'
    = javascript_include_tag "application"

    = csrf_meta_tag
    %title
      - if current_user
        = "#{current_user.tenant}: #{content_for :page_title} - #{Settings.title}"
      - else
        = "#{content_for :page_title} - #{Settings.title}"

  %body
    .navbar.navbar-fixed-top
      .navbar-inner
        .container
          = link_to root_path, :class => 'brand' do
            = Settings.title

          .btn-group.pull-right
            = link_to '#', :class => 'btn dropdown-toggle', 'data-toggle' => 'dropdown' do
              %i.icon-user
              = current_admin_user
              %span.caret
            %ul.dropdown-menu
              %li= link_to t('devise.sign_out'), destroy_admin_user_session_path, :method => :delete

    #content.container
      - if notice
        = boot_alert(notice, 'success')
      - if alert
        = boot_alert(alert, 'error')
      .row-fluid
        - if admin_user_signed_in?
          .span12
            .content
              = yield
        - else
          .offset3.span6= yield

    #footer
      .container
        %p.pull-right
          = link_to "Deutsch", :locale => 'de-CH'
          = link_to "English", :locale => 'en'
        %p
          Bookyt is built by <a href="http://cyt.ch" target="_blank">CyT GmbH</a>.
          Code licensed under the <a href="http://www.gnu.org/licenses/agpl-3.0.html" target="_blank">GNU AGPL 3</a>.
